str1 = input("请输入：")
str2 = ""
str3 = ""
for i in str1:
    if i not in str2:
        str2 += i
        count1 = list(str1).count(i)
        str3 =str3 + i + str(count1)
print(str3)